import axios from '@/libs/api.request'

export const login = ({ userName, password }) => {
  const data = {
    username:userName,
    password
  }

  return axios.request({
    url: '/auth/user/login',
    data,
    method: 'post'
  })
}

export const logout = () => {//用户退出
    return axios.request({
        url   : '/auth/user/logout',
        method: 'post'
    })
}
